<?php

namespace app\api\Logic\Campusclass;

use app\api\model\CampusClassStudentModel;

//班级学员接口
class CampusClassStudentLogic
{
    /**
     * 创建班级学员信息
     * @param $params
     * @return int|string
     */
    public function insert($params){
        return CampusClassStudentModel::insertGetId([
            'shop_id' => $params['shop_id'],
            'class_id' => $params['class_id'],
            'user_id' => $params['user_id'],
            'course_id' => $params['course_id'],
            'all_class_hour' => $params['all_class_hour'],
            'class_hour' => $params['all_class_hour'],
            'createtime' => time()
        ]);
    }
}
